package com.xiaoyy.app.api.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * app轮播图
 * </p>
 *
 * @author chenzh
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("APP_BANNER")
@ApiModel(value="AppBanner对象", description="app轮播图")
public class AppBanner extends Model<AppBanner> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "BANNER_ID", type = IdType.INPUT)
    private Long bannerId;

    @ApiModelProperty(value = "标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "链接地址")
    @TableField("LINK_URL")
    private String linkUrl;

    @ApiModelProperty(value = "链接类型：router 内部路由 h5 第三方H5 weixin 第三方微信小程序")
    @TableField("LINK_TYPE")
    private String linkType;

    @ApiModelProperty(value = "内部路由路径")
    @TableField("LINK_PATH")
    private String linkPath;

    @ApiModelProperty(value = "内部路由名")
    @TableField("LINK_NAME")
    private String linkName;

    @ApiModelProperty(value = "链接参数：json")
    @TableField("LINK_PARAMS")
    private String linkParams;

    @ApiModelProperty(value = "轮播文件地址")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "轮播文件类型：image video")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "轮播类型：home 首页轮播图")
    @TableField("BANNER_TYPE")
    private String bannerType;

    @ApiModelProperty(value = "是否根据标签显示 0 否 1 是")
    @TableField("LABEL_FLAG")
    private String labelFlag;

    @ApiModelProperty(value = "描述")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "开始时间")
    @TableField("BEG_TIME")
    private Date begTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("END_TIME")
    private Date endTime;

    @ApiModelProperty(value = "有效状态 0无效 1有效")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_NAME")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_NAME")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField("DEL")
    private String del;


    @Override
    protected Serializable pkVal() {
        return this.bannerId;
    }

}
